package com.hyl.entity;

/**
 * @Description 学生
 * @Author hyl
 * @Date 2023/4/14 10:09
 **/
public class Student {
	private String name;
	private Integer age;
	public Integer msg;
	Integer desc;
	protected String  tmp;

//	public Student(){
//		System.out.println("无参构造方法");
//	}

	private Student(String name) {
		this.name = name;
	}

	public Student(String name, Integer age) {
		this.name = name;
		this.age = age;
	}

	public void show(){
		System.out.println("姓名："+name+"，年龄："+age);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
}
